package org.xg.study.pd.event.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xg.study.pd.LotteryResult;

/**
 * @author CMG
 * @version 1.0
 * @description 短消息事件
 * @cLassName MessageEventListener
 * @date 2021/9/17 10:16
 **/
public class MessageEventListener implements EventListener{
    private Logger logger = LoggerFactory.getLogger(MessageEventListener.class);

    @Override
    public void doEvent(LotteryResult result) {
        logger.info("给用户 {} 发送短信通知(短信)：{}", result.getUId(), result.getMsg());
    }
}
